package com.accenture.portal.util;

import org.apache.log4j.MDC;

public class LogManagerUtil {
	
//	private static Logger login = Logger.getLogger(className.class.getName());
	
//	public static void getLogger(String className){
//		Logger login = Logger.getLogger(className);
//	}
	
	public static void recordLoginLog(String loginIP,String userName,
			String status,String info){
		
		MDC.put("loginIP", loginIP);
		MDC.put("userName", userName);
		MDC.put("status", status);
		MDC.put("info", info);
		
	}
	
	public static void recordBusinessLog(String operateAccount,String modelName, 
			String operate, String status, String info){
		
		//MDC.put("operateDate", operateDate);
		MDC.put("operateAccount", operateAccount);
		MDC.put("modelName", modelName);
		MDC.put("operate", operate);
		MDC.put("status", status);
		MDC.put("info", info);
	}
	
	

}
